package cn.study.luckyadapter.controller.admin;

import cn.study.common.annotation.ResponseResult;
import cn.study.luckyclient.api.IRecordService;
import cn.study.luckyclient.dto.RecordUpdateStatusCmd;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@AllArgsConstructor
@ResponseResult
@RequestMapping("/admin/v1/record")
public class AdminRecordController {
    private final IRecordService recordService;
    @PostMapping("/updateStatusTo3")
    public Boolean updateStatusTo3(RecordUpdateStatusCmd cmd) {
        cmd.setState(3);
        return recordService.update(cmd);
    }
}
